import {
  Button,
  Icon,
  Loading,
  Image,
  Tab,
  Tabs,
  Search,
  Tabbar,
  TabbarItem,
  Swipe,
  SwipeItem
} from 'vant'

const vantUIs = [Button, Icon, Loading, Image, Tab,
  Tabs, Search, Tabbar, TabbarItem, Swipe, SwipeItem]

export default {
  install(Vue) {
    vantUIs.forEach((vantUI) => {
      Vue.component(vantUI.name, vantUI)
    })
  }
}
